package com.cn.wanxi.util.dao.impl;

import com.cn.wanxi.util.dao.ISchoolContent2Dao;
import com.cn.wanxi.util.model.ConpanyIdeaModel;
import com.cn.wanxi.util.model.SchoolContacModel;
import com.cn.wanxi.util.model.SchoolNewsModel;
import com.cn.wanxi.util.model.SchoolTitleModel;
import com.cn.wanxi.util.utils.SchoolContent2Utile;
import com.cn.wanxi.util.utils.SchoolTitleUtile;

import java.util.ArrayList;
import java.util.List;

public class SchoolContent2Dao implements ISchoolContent2Dao {
    SchoolTitleUtile schoolTitleUtile =new SchoolTitleUtile();
    SchoolContent2Utile schoolContent2Utile =new SchoolContent2Utile();
    @Override
    public List<SchoolTitleModel> schoolTitle() {
        List<SchoolTitleModel> schoolTitleList =schoolTitleUtile.readSchoolTitleModel();
        return schoolTitleList;
    }

    @Override
    public List<ConpanyIdeaModel> conpanyIdea() {
        List<ConpanyIdeaModel> conpanyIdeaList = schoolContent2Utile.readConpanyIdeaFile();
        return conpanyIdeaList;
    }

    @Override
    public List<SchoolNewsModel> schoolNewsModel() {
        List<SchoolNewsModel> schoolNewsList =schoolContent2Utile.readSchoolNews();
        return schoolNewsList;
    }

    @Override
    public List<SchoolContacModel> schoolContacModel() {
        List<SchoolContacModel> schoolContacList =schoolContent2Utile.readSchoolContac();
        return schoolContacList;
    }
}
